-- GENERATED SPELL FOR [Residual Monstrosity] --


function spell0_11484(pUnit, Event) --@Arcane Blast,n/a--
pUnit:FullCastSpellOnTarget(22940,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11484', 661, 1)
end

function spell1_11484(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(15230,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11484', 1000, 1)
end

function spell2_11484(pUnit, Event) --@Summon Mana Bursts,Self--
pUnit:FullCastSpellOnTarget(22939,pUnit)
pUnit:RegisterEvent('Sorts_11484', 611, 1)
end

function Sorts_11484(pUnit, Event)
local choix_sorts_11484 = math.random(0, 2)
if choix_sorts_11484 == 0 then
pUnit:RegisterEvent('spell0_11484', 1, 1)
end
if choix_sorts_11484 == 1 then
pUnit:RegisterEvent('spell1_11484', 1, 1)
end
if choix_sorts_11484 == 2 then
pUnit:RegisterEvent('spell2_11484', 1, 1)
end
end

function mob11484_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11484', math.random(1500, 3000), 1)
end

function mob11484_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11484_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11484_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11484, 1, 'mob11484_Action')
RegisterUnitEvent(11484, 2, 'mob11484_Leave')
RegisterUnitEvent(11484, 3, 'mob11484_Kill')
RegisterUnitEvent(11484, 4, 'mob11484_Die')
